public class DescriptionModel extends HCIModelAdapter
description container.The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:simpleType name="DescriptionType"> <xs:restriction base="xs:string" /> </xs:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static String |
TAG_NAME
The value of that constant is the XML tag name of the
Description. |
| Constructor and Description |
|---|
DescriptionModel()
Constructs a
DescriptionModel with a null description |
DescriptionModel(String description)
Constructs a
DescriptionModel with a given String description |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
String |
getDescription()
Gets the
String text of the description |
static String |
getDescriptionFromModel(DescriptionModel model)
Gets the
String description coming from a DescriptionModel. |
String |
getTagName()
Gets the XML tag name of the HCI model.
|
void |
marshalAttributes(XMLOutputter output)
Gives an XML representation of the attributes of an object.
|
void |
marshalChildren(XMLOutputter output)
Gives an XML representation of the child objects of an object.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setDescription(String description)
Sets the
String description |
static DescriptionModel |
setDescriptionIntoModel(DescriptionModel model,
String description)
Sets a
String description text into a DescriptionModel object |
marshalpublic static final String TAG_NAME
Description.public DescriptionModel()
DescriptionModel with a null descriptionpublic DescriptionModel(String description)
DescriptionModel with a given String descriptiondescription - The String description of the DescriptionModelpublic String getDescription()
String text of the descriptionString descriptionpublic void setDescription(String description)
String descriptiondescription - the String descriptionpublic void addCharacterData(String cData)
XMLMarshallablecData - The character data to be addedpublic void addChild(String tagName, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.tagName - The name of tag for the childchild - The child to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void marshalAttributes(XMLOutputter output)
IXMLMarshallableoutput - The XML output to marshal the object attributes intopublic void marshalChildren(XMLOutputter output)
IXMLMarshallableoutput - The XML output to marshal the child objects intopublic String getTagName()
ITagNameProviderpublic static final String getDescriptionFromModel(DescriptionModel model)
String description coming from a DescriptionModel.model - The DescriptionModel which we want to exact the String descriptionString description text coming from the DescriptionModel
and returns null if the model is nullpublic static final DescriptionModel setDescriptionIntoModel(DescriptionModel model, String description)
String description text into a DescriptionModel objectmodel - DescriptionModel which you want to set the String descriptiondescription - The String description to be set into the DescriptionModelDescriptionModel including the String description
Returns a new DescriptionModel if the DescriptionModel given in parameter is null.
Returns null if the String description null